package com.train.system.po;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 火车车厢
 * @author baitiaojun
 * @TableName train_carriage
 * @createDate 2025-02-20 18:52:37
 */
@TableName(value ="train_carriage")
@Data
public class TrainCarriagePO implements Serializable {


    /**
    * id
    */
    @TableId
    private Long id;

    /**
    * 车次编号
    */
    private String trainCode;

    /**
    * 厢号
    */
    @TableField(value = "`index`")
    private Integer index;

    /**
    * 座位类型|枚举[SeatTypeEnum]
    */
    private String seatType;

    /**
    * 座位数
    */
    private Integer seatCount;

    /**
    * 排数
    */
    private Integer rowCount;

    /**
    * 列数
    */
    private Integer colCount;

    /**
    * 新增时间
    */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
    * 修改时间
    */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
